<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <link rel="shortcut icon" href="" />
        <title>{$title|default=''}&nbsp;<notempty name="title">-逍遥CMS</notempty>&nbsp;</title>
        <link rel="stylesheet" href="__ROOT__/static/plugs/bootstrap/css/bootstrap.min.css?ver={:date('ymd')}"/>
        <link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?ver={:date('ymd')}"/>
        <link rel="stylesheet" href="__ROOT__/static/admin/css/console.css?ver={:date('ymd')}">
        <link rel="stylesheet" href="__ROOT__/static/admin/css/animate.css?ver={:date('ymd')}">
        <block name="style"></block>
        <script>window.ROOT_URL = '__ROOT__';</script>
        <script src="__ROOT__/static/plugs/require/require.js?ver={:date('ymd')}"></script>
        <script src="__ROOT__/static/admin/app.js?ver={:date('ymd')}"></script>
    </head>
    <body>
        <div class="framework-topbar">
            <div class="console-topbar">
                <div class="topbar-wrap topbar-clearfix">
                    <div class="topbar-head topbar-left">
                        <a href="#;" class="topbar-logo topbar-left">
                            <span class="icon-logo">逍遥CMS<sup>V1.0.0</sup></span>
                        </a>
                    </div>
                    <volist name='menus' id='pmenu'>
                        <empty name='pmenu.sub'>
                            <a data-menu-node='m-{$pmenu.id}' data-open="{$pmenu.url}" class="topbar-home-link topbar-btn topbar-left">
                                <span><notempty name='$pmenu.icon'><i class="{$pmenu.icon}"></i></notempty> {$pmenu.title}</span>
                            </a>
                        <else/>
                            <a data-menu-target='m-{$pmenu.id}' class="topbar-home-link topbar-btn topbar-left">
                                <span><notempty name='$pmenu.icon'><i class="{$pmenu.icon}"></i></notempty> {$pmenu.title}</span>
                            </a>
                        </empty>
                    </volist>
                    <div class="topbar-info topbar-right">
                        <a data-reload data-tips-text='刷新'
                           class=" topbar-btn topbar-left topbar-info-item text-center"
                           style='width:50px;'>
                            <span class='glyphicon glyphicon-refresh'></span>
                        </a>
                        <script>
                            require(['jquery'], function () {
                                $('[data-reload]').hover(function () {
                                    $(this).find('.glyphicon').addClass('fa-spin');
                                }, function () {
                                    $(this).find('.glyphicon').removeClass('fa-spin');
                                });
                            });
                        </script>
                        <div class="topbar-left topbar-user">
                            <div class="dropdown topbar-info-item">
                                <a href="#" class="dropdown-toggle topbar-btn text-center" data-toggle="dropdown">
                                    <span class='glyphicon glyphicon-user'></span> {:session('user.username')} </span>
                                    <span class="glyphicon glyphicon-menu-up transition" style="font-size:12px"></span>
                                </a>
                                <ul class="dropdown-menu">
                                    <li class="topbar-info-btn">
                                        <a data-modal="#;">
                                            <span><i class='glyphicon glyphicon-lock'></i> 修改密码</span>
                                        </a>
                                    </li>
                                    <li class="topbar-info-btn">
                                        <a data-modal="#;">
                                            <span><i class='glyphicon glyphicon-edit'></i> 修改资料</span>
                                        </a>
                                    </li>
                                    <li class="topbar-info-btn">
                                        <a data-load="#;" data-confirm='确定要退出登录吗？'>
                                            <span><i class="glyphicon glyphicon-log-out"></i> 退出登录</span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>